package com.stark.wechat.service.accesstoken.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 获取接口调用凭据返回体
 *
 * @author <a href="mailto:mengbin@hotmail.com">Ben</a>
 * @version 1.0.0
 * @see <a href="https://developers.weixin.qq.com/doc/service/api/base/api_getaccesstoken.html#%E8%BF%94%E5%9B%9E%E4%BD%93-Response-Payload">基础接口 / 获取接口调用凭据</a>
 * @since 2024/5/23
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class GetAccessTokenResponsePayload implements Serializable {

    private static final long serialVersionUID = 699780751370627136L;

    /**
     * 获取到的凭证
     */
    @JsonProperty("access_token")
    private String accessToken;

    /**
     * 凭证有效时间，单位：秒
     */
    @JsonProperty("expires_in")
    private Long expiresIn;

}
